Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

875
Views
Discord.js: components[0].components[0].options[1]: The specified option value is already used

I was making a self-role menu using select menus feature and an error occurred while I was trying to run the command, the part of the command code:

const Row5 = new MessageActionRow()
    .addComponents(
      new MessageSelectMenu()
      .setCustomId('pings')
      .setPlaceholder('Click to select the self-roles')
      .addOptions([
        {
          label: `Giveaways`,
          value: `giveaway`,
          emoji: '๐ŸŽ‰'
        },
        {
          label: `Tweets`,
          value: `twitterrrr`,
          emoji: '938517355879870474'
        },
        {
          label: `YouTube Uploads`,
          value: `uploads`,
          emoji: '879396250213027880'
        },
        {
          label: `Events`,
          value: `events`,
          emoji: '๐ŸŽช'
        },
        {
          label: `Chat Revive`,
          value: `revive`,
          emoji: '๐ŸŒ‘'
        },
        {
          label: `Hold`,
          description: `Used to select the same option again`,
          value: `hold`,
          emoji: '๐Ÿ–๏ธ'
        }
      ])
    )

Here is the full error:

DiscordAPIError: Invalid Form Body
components[0].components[0].options[1]: The specified option value is already used
components[0].components[0].options[2]: The specified option value is already used

[object Promise]

The error says that some option's values are not unique, but it is clearly not true, according to the code.

The interesting thing is - after I remove this part of code:

{
          label: `Tweets`,
          value: `twitterrrr`,
          emoji: '938517355879870474'
        },
        {
          label: `YouTube Uploads`,
          value: `uploads`,
          emoji: '879396250213027880'
        },

everything starts working fine. Hm.

about 4 years ago ยท Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
ยฉ 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!